import userApi from './user/user.api.js'
import recordApi from './record/record.api.js'
import engineApi from './engine/engine.api.js'
import prizeApi from './prize/prize.api.js'
const install = (Vue, vm) => {   
	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	vm.$u.api = Object.assign({},
		userApi(vm),
		recordApi(vm),
		engineApi(vm),
		prizeApi(vm)
	);
}

export default {
	install
}
